﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KorkolaskuriBL
{
    public class LoanPayment
    {
        public LoanPayment(int period, double principalPortion, double interestPortion, double balance)
        {
            Period = period;
            PrincipalPortion = principalPortion;
            InterestPortion = interestPortion;
            Balance = balance;
        }

        public int Period { get; private set; }

        public double PrincipalPortion { get; private set; }

        public double InterestPortion { get; private set; }

        public double TotalPayment
        {
            get { return PrincipalPortion + InterestPortion; }
        }

        public double Balance { get; private set; }
    }
}
